
using Microsoft.Extensions.DependencyInjection;

using System;

using System.Linq;

using Xc.DataAccess.HyperTerminalCore.Models;
using Xc.Logics.HyperTerminalCore.Tcp.Views;
using Xc.Views.Core;

namespace Xc.Logics.HyperTerminalCore.Tcp
{
    [Boot("TCP超级终端")]
    public class StartUp : ApplicationBooster<HyperAppSetting>
    {
        protected override void BeforeBuild(IServiceCollection serviceDescriptors)
        {
            serviceDescriptors.AddSocketService();
            serviceDescriptors.AddSettingService<HyperAppSetting>();
            serviceDescriptors.AddEncodingServcie();
            serviceDescriptors.AddTransient<MainView>();
            base.BeforeBuild(serviceDescriptors);
        }
        public MainView GetMainElement()
        {
           return this.GetMainElement<MainView>();
        }
    }
}
